import Vue from "vue";
import Vuex from "vuex";
import app from "./modules/app";
import user from "./modules/user";
import tagsView from "./modules/tagsView";
import permission from "./modules/permission";
import settings from "./modules/settings";
import getters from "./getters";
import echart from "./modules/echart";
import dict from "./modules/dict";
import system from "./modules/system";
import log from "./modules/log";
import global from "./modules/global";
import rule from "./modules/rule";
import notice from "./modules/notice";
import common from "./modules/common";

Vue.use(Vuex);

const store = new Vuex.Store({
  modules: {
    app,
    echart,
    user,
    tagsView,
    permission,
    settings,
    dict,
    system,
    log,
    global,
    rule,
    notice,
    common,
  },
  getters,
});

export default store;
